/**
 * Company:JWT
 * Dated : 4/02/2010
 * @author syeung
 * custom event class is created so that I can pass arguments 
 * from whereever I dispatch from 
 */

package com.jwt.vpower.view.ui.event {
	import flash.events.Event;
	public class CustomEvent extends Event{
		public static const CUSTOM:String = "custom";
		
		
		public var arg:*;
		
		public function CustomEvent(type:String, customArg:*=null,bubbles:Boolean=false,cancelable:Boolean=false) {
			super(type, bubbles, cancelable);
			this.arg = customArg;
			
		}
		
		public override function clone():Event {
			return new CustomEvent(type, arg, bubbles, cancelable);
		}
		
		public override function toString():String {
			return formatToString("CustomEvent", "type", "arg","bubbles", "cancelable", "eventPhase");
		}
		
	}
}
